package com.hobson.design.factory.builder;

import java.util.List;

/**
 * 订单
 *
 * @author: haibin.tang
 * @date: 2020/8/6
 */
public class Order {
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 订单总价
     */
    private Integer totalAmount;
    /**
     * 订单最终价格
     */
    private Integer finalAmount;
    /**
     * 优惠券扣金额
     */
    private Integer deductionAmount;
    /**
     * 优惠券id
     */
    private String couponId;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 订单明细
     */
    private List<OrderItem> items;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getFinalAmount() {
        return finalAmount;
    }

    public void setFinalAmount(Integer finalAmount) {
        this.finalAmount = finalAmount;
    }

    public Integer getDeductionAmount() {
        return deductionAmount;
    }

    public void setDeductionAmount(Integer deductionAmount) {
        this.deductionAmount = deductionAmount;
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<OrderItem> getItems() {
        return items;
    }

    public void setItems(List<OrderItem> items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderNo='" + orderNo + '\'' +
                ", totalAmount=" + totalAmount +
                ", finalAmount=" + finalAmount +
                ", deductionAmount=" + deductionAmount +
                ", couponId='" + couponId + '\'' +
                ", userId='" + userId + '\'' +
                ", items=" + items +
                '}';
    }
}
